{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 预处理 网力照片 标签数据"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import pymysql \n",
    "import os,shutil\n",
    "from pathlib import Path"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "\n",
    "db = pymysql.connect(host='localhost',port=3306,user='root',passwd='123456',charset='UTF8',db='id_info_cahe_copy') \n",
    "cur = db.cursor() \n",
    "\n",
    "sql=\"\"\"SELECT\n",
    "*\n",
    "FROM\n",
    "id_info\n",
    "limit 1000 \"\"\"\n",
    "\n",
    "df1 =pd.read_sql(sql,con=db)\n",
    " \n",
    "\n",
    "sql=\"\"\"SELECT\n",
    "*\n",
    "FROM\n",
    "id_info\n",
    "where name like \"王%\"  \"\"\"\n",
    "\n",
    "df2=pd.read_sql(sql,con=db)\n",
    "\n",
    " \n",
    "\n",
    "df3= df1.append(df2, ignore_index=True)\n",
    "\n",
    "print(df3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 归类好训练文件\n",
    "# **注意windows上的管理员可能会访问不了网络磁盘** 不要用管理源运行 \n",
    "idAndpath=df3.loc[:,[\"idcard\",\"image_path\"]]\n",
    "tmp=len(\"/app/id_img\")\n",
    "for index ,i in enumerate(idAndpath.values):\n",
    "    idcardLabelFolder=os.path.normpath(\"X:/share/image/train_id_img_label/\"+i[0])\n",
    "    if not os.path.exists(idcardLabelFolder) :\n",
    "        os.mkdir(idcardLabelFolder)\n",
    "        print(idcardLabelFolder)\n",
    "   \n",
    "        source=os.path.normpath(\"X:/share/image/train_id_img/\"+ i[1][tmp+1:])\n",
    "        print(source)\n",
    "        shutil.copy(source,idcardLabelFolder)\n",
    "    end=index\n",
    "else:\n",
    "    print(end)\n",
    "#print(idAndpath)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "\n",
    "import sys,re,shutil\n",
    "\n",
    "sys.path.append(\"../\")\n",
    "from sjlib import sjtext\n",
    "file_dir=r\"X:\\share\\image\\mydataset\\test_img/\"\n",
    "dist_dir=file_dir #r\"D:/docker\\mnt\\openface\\data\\mydataset\\train_img/\"\n",
    "\n",
    "#将原始数据 分类文件 打上标签\n",
    "for root, dirs, files in os.walk(file_dir):\n",
    "    for file in files:\n",
    "        #创建目录\n",
    "        folderLabel= re.sub(\"\\d|\\W\",\"\",file[:-4]) \n",
    "        folderLabelDir= dist_dir+folderLabel\n",
    "        os.mkdir(folderLabelDir) if not os.path.exists(folderLabelDir) else print(\"exist path \"+folderLabelDir)\n",
    "        #复制图片到分类目录中\n",
    "        if folderLabel in file :\n",
    "           # shutil.copy(root+\"/\"+file,folderLabelDir) # 复制图片\n",
    "            shutil.move(root+\"/\"+file,folderLabelDir) #移动图片\n",
    "\n",
    "\n",
    " "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 随机取出所有数据中的3张作为训练数据，其余作为测试数据。 不足三张则不训练\n",
    "import glob,random\n",
    "train_dir=dist_dir\n",
    "test_dir=r\"D:\\docker\\mnt\\openface\\data\\mydataset\\test_img/\"\n",
    "\n",
    "train_img_number=9\n",
    "\n",
    "allFolderList=glob.glob(train_dir+\"/*\")\n",
    "for folder in allFolderList:\n",
    "    test_imgList=glob.glob(folder + \"/*\")\n",
    "    #随机取出 totol - number 个 留下 number 个，不足则不取出\n",
    "    if len(test_imgList)>train_img_number:\n",
    "        test_imgList=random.sample(test_imgList,len(test_imgList)-train_img_number)\n",
    "        for test_img in test_imgList:\n",
    "            shutil.move(test_img,test_dir)\n",
    "    "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 训练分类数据 取出一张\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'002'"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"2\".zfill(3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "ename": "FileExistsError",
     "evalue": "[WinError 183] 当文件已存在时，无法创建该文件。: '000'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mFileExistsError\u001b[0m                           Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-1-20277c941e38>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m      8\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      9\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;36m100\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 10\u001b[1;33m     \u001b[0mPath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstr\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mzfill\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;36m3\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;32mc:\\program files\\python36\\lib\\pathlib.py\u001b[0m in \u001b[0;36mmkdir\u001b[1;34m(self, mode, parents, exist_ok)\u001b[0m\n\u001b[0;32m   1244\u001b[0m             \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_raise_closed\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1245\u001b[0m         \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1246\u001b[1;33m             \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_accessor\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1247\u001b[0m         \u001b[1;32mexcept\u001b[0m \u001b[0mFileNotFoundError\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1248\u001b[0m             \u001b[1;32mif\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mparents\u001b[0m \u001b[1;32mor\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mparent\u001b[0m \u001b[1;33m==\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mc:\\program files\\python36\\lib\\pathlib.py\u001b[0m in \u001b[0;36mwrapped\u001b[1;34m(pathobj, *args)\u001b[0m\n\u001b[0;32m    385\u001b[0m         \u001b[1;33m@\u001b[0m\u001b[0mfunctools\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mwraps\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstrfunc\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    386\u001b[0m         \u001b[1;32mdef\u001b[0m \u001b[0mwrapped\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpathobj\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m*\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 387\u001b[1;33m             \u001b[1;32mreturn\u001b[0m \u001b[0mstrfunc\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstr\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpathobj\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m*\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    388\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mstaticmethod\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mwrapped\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    389\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mFileExistsError\u001b[0m: [WinError 183] 当文件已存在时，无法创建该文件。: '000'"
     ]
    }
   ],
   "source": [
    "import os ,sys\n",
    "from pathlib import Path\n",
    "import pathlib ,shutil\n",
    "\n",
    "os.chdir(r\"X:\\share\\image\\CASIA-FaceV5-classfiy100\")\n",
    "source_dir=r\"X:\\share\\image\\CASIA-FaceV5-align_img160\"\n",
    "\n",
    "\n",
    "for i in range(100):\n",
    "    Path(str(i).zfill(3)).mkdir()\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "path000=Path(source_dir).glob(\"*\")\n",
    "\n",
    "pwd=os.getcwd()\n",
    "dis_dir_list=[i for i in Path(pwd).glob('*')]\n",
    "\n",
    "#dis_dir_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "cnt=0\n",
    "src_file_list=[]\n",
    "for i in path000:\n",
    "    file_list=Path(i).glob(\"*\")\n",
    "    #print(i)\n",
    "    for j in file_list:\n",
    "        src_file_list.append(j)\n",
    "        break\n",
    "#src_file_list   \n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "for j,k in zip(src_file_list,dis_dir_list):\n",
    "    shutil.copy(j,k)\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "X:\\share\\image\\aligen160_lfw\\Abdullah_Gul\n",
      "X:\\share\\image\\aligen160_lfw\\Adrien_Brody\n",
      "X:\\share\\image\\aligen160_lfw\\Alejandro_Toledo\n",
      "X:\\share\\image\\aligen160_lfw\\Alvaro_Uribe\n",
      "X:\\share\\image\\aligen160_lfw\\Amelie_Mauresmo\n",
      "X:\\share\\image\\aligen160_lfw\\Andre_Agassi\n",
      "X:\\share\\image\\aligen160_lfw\\Andy_Roddick\n",
      "X:\\share\\image\\aligen160_lfw\\Angelina_Jolie\n",
      "X:\\share\\image\\aligen160_lfw\\Anna_Kournikova\n",
      "X:\\share\\image\\aligen160_lfw\\Ann_Veneman\n",
      "X:\\share\\image\\aligen160_lfw\\Ariel_Sharon\n",
      "X:\\share\\image\\aligen160_lfw\\Ari_Fleischer\n",
      "X:\\share\\image\\aligen160_lfw\\Arnold_Schwarzenegger\n",
      "X:\\share\\image\\aligen160_lfw\\Atal_Bihari_Vajpayee\n"
     ]
    },
    {
     "ename": "KeyboardInterrupt",
     "evalue": "",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mKeyboardInterrupt\u001b[0m                         Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-29-473d4f8cda0c>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m     16\u001b[0m     \u001b[1;32mreturn\u001b[0m \u001b[0mfile_path_list\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     17\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 18\u001b[1;33m \u001b[0mget_file_path_list\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;32m<ipython-input-29-473d4f8cda0c>\u001b[0m in \u001b[0;36mget_file_path_list\u001b[1;34m()\u001b[0m\n\u001b[0;32m      9\u001b[0m     \u001b[1;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mPath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0msrc\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mglob\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"*\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     10\u001b[0m         \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 11\u001b[1;33m             \u001b[1;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mlist\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mPath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0miterdir\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m>\u001b[0m\u001b[1;36m10\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m     12\u001b[0m                 \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     13\u001b[0m                 \u001b[0mfile_path_list\u001b[0m\u001b[1;33m+=\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mc:\\program files\\python36\\lib\\pathlib.py\u001b[0m in \u001b[0;36miterdir\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m   1077\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_closed\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1078\u001b[0m             \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_raise_closed\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1079\u001b[1;33m         \u001b[1;32mfor\u001b[0m \u001b[0mname\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_accessor\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mlistdir\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1080\u001b[0m             \u001b[1;32mif\u001b[0m \u001b[0mname\u001b[0m \u001b[1;32min\u001b[0m \u001b[1;33m{\u001b[0m\u001b[1;34m'.'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'..'\u001b[0m\u001b[1;33m}\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1081\u001b[0m                 \u001b[1;31m# Yielding a path object for these makes little sense\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mc:\\program files\\python36\\lib\\pathlib.py\u001b[0m in \u001b[0;36mwrapped\u001b[1;34m(pathobj, *args)\u001b[0m\n\u001b[0;32m    385\u001b[0m         \u001b[1;33m@\u001b[0m\u001b[0mfunctools\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mwraps\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstrfunc\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    386\u001b[0m         \u001b[1;32mdef\u001b[0m \u001b[0mwrapped\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpathobj\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m*\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 387\u001b[1;33m             \u001b[1;32mreturn\u001b[0m \u001b[0mstrfunc\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstr\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpathobj\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m*\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    388\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mstaticmethod\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mwrapped\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    389\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mKeyboardInterrupt\u001b[0m: "
     ]
    }
   ],
   "source": [
    "## 选取lfw 中大于10张样本的 ,复制到xxx\n",
    "src=r\"X:\\share\\image\\aligen160_lfw\"\n",
    "dst=r\"X:\\share\\image\\lfw_classfiy_great10\"\n",
    "from pathlib import Path\n",
    "import shutil\n",
    "\n",
    "def get_file_path_list():\n",
    "    file_path_list=[]\n",
    "    for i in Path(src).glob(\"*\"):\n",
    "        try:\n",
    "            if len(list(Path(i).iterdir())) >10:\n",
    "                print(i)\n",
    "                file_path_list+=[i]\n",
    "        except NotADirectoryError:\n",
    "            pass\n",
    "    return file_path_list\n",
    "\n",
    "get_file_path_list()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "X:\\share\\image\\aligen160_lfw\\Abdullah_Gul\n",
      "X:\\share\\image\\aligen160_lfw\\Adrien_Brody\n",
      "X:\\share\\image\\aligen160_lfw\\Alejandro_Toledo\n",
      "X:\\share\\image\\aligen160_lfw\\Alvaro_Uribe\n",
      "X:\\share\\image\\aligen160_lfw\\Amelie_Mauresmo\n",
      "X:\\share\\image\\aligen160_lfw\\Andre_Agassi\n",
      "X:\\share\\image\\aligen160_lfw\\Andy_Roddick\n",
      "X:\\share\\image\\aligen160_lfw\\Angelina_Jolie\n",
      "X:\\share\\image\\aligen160_lfw\\Anna_Kournikova\n",
      "X:\\share\\image\\aligen160_lfw\\Ann_Veneman\n",
      "X:\\share\\image\\aligen160_lfw\\Ariel_Sharon\n",
      "X:\\share\\image\\aligen160_lfw\\Ari_Fleischer\n",
      "X:\\share\\image\\aligen160_lfw\\Arnold_Schwarzenegger\n",
      "X:\\share\\image\\aligen160_lfw\\Atal_Bihari_Vajpayee\n",
      "X:\\share\\image\\aligen160_lfw\\Bill_Clinton\n",
      "X:\\share\\image\\aligen160_lfw\\Bill_Gates\n",
      "X:\\share\\image\\aligen160_lfw\\Bill_Simon\n",
      "X:\\share\\image\\aligen160_lfw\\Britney_Spears\n",
      "X:\\share\\image\\aligen160_lfw\\Carlos_Menem\n",
      "X:\\share\\image\\aligen160_lfw\\Carlos_Moya\n",
      "X:\\share\\image\\aligen160_lfw\\Catherine_Zeta-Jones\n",
      "X:\\share\\image\\aligen160_lfw\\Charles_Moose\n",
      "X:\\share\\image\\aligen160_lfw\\Colin_Powell\n",
      "X:\\share\\image\\aligen160_lfw\\Condoleezza_Rice\n",
      "X:\\share\\image\\aligen160_lfw\\David_Beckham\n",
      "X:\\share\\image\\aligen160_lfw\\David_Nalbandian\n",
      "X:\\share\\image\\aligen160_lfw\\Dick_Cheney\n",
      "X:\\share\\image\\aligen160_lfw\\Dominique_de_Villepin\n",
      "X:\\share\\image\\aligen160_lfw\\Donald_Rumsfeld\n",
      "X:\\share\\image\\aligen160_lfw\\Edmund_Stoiber\n",
      "X:\\share\\image\\aligen160_lfw\\Eduardo_Duhalde\n"
     ]
    },
    {
     "ename": "KeyboardInterrupt",
     "evalue": "",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mKeyboardInterrupt\u001b[0m                         Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-28-220ffae3dda9>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m      2\u001b[0m  \u001b[1;31m#选择目录名\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      3\u001b[0m \u001b[1;31m# 选择数量 break\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 4\u001b[1;33m \u001b[1;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mget_file_path_list\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m      5\u001b[0m     \u001b[0mt\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mPath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mparts\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      6\u001b[0m     \u001b[0mnewPath\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mPath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mjoinpath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m*\u001b[0m\u001b[0mt\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m-\u001b[0m\u001b[1;36m2\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;34m\"\\lfw_classfiy_image_equel1_gener\"\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mt\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;33m-\u001b[0m\u001b[1;36m1\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32m<ipython-input-26-4891e6e2b0a6>\u001b[0m in \u001b[0;36mget_file_path_list\u001b[1;34m()\u001b[0m\n\u001b[0;32m      9\u001b[0m     \u001b[1;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mPath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0msrc\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mglob\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"*\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     10\u001b[0m         \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 11\u001b[1;33m             \u001b[1;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mlist\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mPath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0miterdir\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m>\u001b[0m\u001b[1;36m10\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m     12\u001b[0m                 \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     13\u001b[0m                 \u001b[0mfile_path_list\u001b[0m\u001b[1;33m+=\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mc:\\program files\\python36\\lib\\pathlib.py\u001b[0m in \u001b[0;36miterdir\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m   1077\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_closed\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1078\u001b[0m             \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_raise_closed\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1079\u001b[1;33m         \u001b[1;32mfor\u001b[0m \u001b[0mname\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_accessor\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mlistdir\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1080\u001b[0m             \u001b[1;32mif\u001b[0m \u001b[0mname\u001b[0m \u001b[1;32min\u001b[0m \u001b[1;33m{\u001b[0m\u001b[1;34m'.'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'..'\u001b[0m\u001b[1;33m}\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1081\u001b[0m                 \u001b[1;31m# Yielding a path object for these makes little sense\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mc:\\program files\\python36\\lib\\pathlib.py\u001b[0m in \u001b[0;36mwrapped\u001b[1;34m(pathobj, *args)\u001b[0m\n\u001b[0;32m    385\u001b[0m         \u001b[1;33m@\u001b[0m\u001b[0mfunctools\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mwraps\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstrfunc\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    386\u001b[0m         \u001b[1;32mdef\u001b[0m \u001b[0mwrapped\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpathobj\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m*\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 387\u001b[1;33m             \u001b[1;32mreturn\u001b[0m \u001b[0mstrfunc\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstr\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpathobj\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m*\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    388\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mstaticmethod\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mwrapped\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    389\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mKeyboardInterrupt\u001b[0m: "
     ]
    }
   ],
   "source": [
    "# 创建目录 ，移动图片\n",
    " #选择目录名\n",
    "# 选择数量 break\n",
    "for i in get_file_path_list():\n",
    "    t=Path(i).parts\n",
    "    newPath=Path(i).joinpath(*t[:-2],\"lfw_classfiy_image_equel1_gener\",t[-1])\n",
    "    try:\n",
    "        newPath.mkdir()\n",
    "    except FileExistsError:\n",
    "        pass\n",
    "        #复制图片\n",
    "    for j in Path(i).glob(\"*\"):\n",
    "        shutil.copy(j,newPath)\n",
    "        break"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "iam a test\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Abdullah_Gul\\Abdullah_Gul_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Abdullah_Gul\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Abdullah_Gul\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Abdullah_Gul\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Adrien_Brody\\Adrien_Brody_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Adrien_Brody\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Adrien_Brody\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Adrien_Brody\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Alejandro_Toledo\\Alejandro_Toledo_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Alejandro_Toledo\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Alejandro_Toledo\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Alejandro_Toledo\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Alvaro_Uribe\\Alvaro_Uribe_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Alvaro_Uribe\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Alvaro_Uribe\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Alvaro_Uribe\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Amelie_Mauresmo\\Amelie_Mauresmo_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Amelie_Mauresmo\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Amelie_Mauresmo\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Amelie_Mauresmo\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Andre_Agassi\\Andre_Agassi_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Andre_Agassi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Andre_Agassi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Andre_Agassi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Andy_Roddick\\Andy_Roddick_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Andy_Roddick\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Andy_Roddick\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Andy_Roddick\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Angelina_Jolie\\Angelina_Jolie_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Angelina_Jolie\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Angelina_Jolie\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Angelina_Jolie\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Anna_Kournikova\\Anna_Kournikova_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Anna_Kournikova\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Anna_Kournikova\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Anna_Kournikova\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ann_Veneman\\Ann_Veneman_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ann_Veneman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ann_Veneman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ann_Veneman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ariel_Sharon\\Ariel_Sharon_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ariel_Sharon\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ariel_Sharon\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ariel_Sharon\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ari_Fleischer\\Ari_Fleischer_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ari_Fleischer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ari_Fleischer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ari_Fleischer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Arnold_Schwarzenegger\\Arnold_Schwarzenegger_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Arnold_Schwarzenegger\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Arnold_Schwarzenegger\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Arnold_Schwarzenegger\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Atal_Bihari_Vajpayee\\Atal_Bihari_Vajpayee_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Atal_Bihari_Vajpayee\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Atal_Bihari_Vajpayee\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Atal_Bihari_Vajpayee\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Clinton\\Bill_Clinton_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Clinton\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Clinton\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Clinton\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Gates\\Bill_Gates_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Gates\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Gates\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Gates\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Simon\\Bill_Simon_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Simon\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Simon\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Bill_Simon\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Britney_Spears\\Britney_Spears_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Britney_Spears\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Britney_Spears\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Britney_Spears\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Carlos_Menem\\Carlos_Menem_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Carlos_Menem\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Carlos_Menem\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Carlos_Menem\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Carlos_Moya\\Carlos_Moya_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Carlos_Moya\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Carlos_Moya\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Carlos_Moya\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Catherine_Zeta-Jones\\Catherine_Zeta-Jones_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Catherine_Zeta-Jones\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Catherine_Zeta-Jones\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Catherine_Zeta-Jones\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Charles_Moose\\Charles_Moose_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Charles_Moose\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Charles_Moose\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Charles_Moose\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Colin_Powell\\Colin_Powell_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Colin_Powell\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Colin_Powell\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Colin_Powell\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Condoleezza_Rice\\Condoleezza_Rice_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Condoleezza_Rice\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Condoleezza_Rice\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Condoleezza_Rice\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\David_Beckham\\David_Beckham_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\David_Beckham\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\David_Beckham\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\David_Beckham\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\David_Nalbandian\\David_Nalbandian_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\David_Nalbandian\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\David_Nalbandian\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\David_Nalbandian\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Dick_Cheney\\Dick_Cheney_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Dick_Cheney\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Dick_Cheney\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Dick_Cheney\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Dominique_de_Villepin\\Dominique_de_Villepin_0001.png\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Dominique_de_Villepin\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Dominique_de_Villepin\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Dominique_de_Villepin\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Donald_Rumsfeld\\Donald_Rumsfeld_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Donald_Rumsfeld\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Donald_Rumsfeld\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Donald_Rumsfeld\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Edmund_Stoiber\\Edmund_Stoiber_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Edmund_Stoiber\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Edmund_Stoiber\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Edmund_Stoiber\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Eduardo_Duhalde\\Eduardo_Duhalde_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Eduardo_Duhalde\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Eduardo_Duhalde\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Eduardo_Duhalde\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Fidel_Castro\\Fidel_Castro_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Fidel_Castro\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Fidel_Castro\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Fidel_Castro\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_HW_Bush\\George_HW_Bush_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_HW_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_HW_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_HW_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_Robertson\\George_Robertson_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_Robertson\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_Robertson\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_Robertson\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_W_Bush\\George_W_Bush_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_W_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_W_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\George_W_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gerhard_Schroeder\\Gerhard_Schroeder_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gerhard_Schroeder\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gerhard_Schroeder\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gerhard_Schroeder\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gloria_Macapagal_Arroyo\\Gloria_Macapagal_Arroyo_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gloria_Macapagal_Arroyo\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gloria_Macapagal_Arroyo\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gloria_Macapagal_Arroyo\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gonzalo_Sanchez_de_Lozada\\Gonzalo_Sanchez_de_Lozada_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gonzalo_Sanchez_de_Lozada\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gonzalo_Sanchez_de_Lozada\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gonzalo_Sanchez_de_Lozada\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gordon_Brown\\Gordon_Brown_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gordon_Brown\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gordon_Brown\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gordon_Brown\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gray_Davis\\Gray_Davis_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gray_Davis\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gray_Davis\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Gray_Davis\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Guillermo_Coria\\Guillermo_Coria_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Guillermo_Coria\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Guillermo_Coria\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Guillermo_Coria\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Halle_Berry\\Halle_Berry_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Halle_Berry\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Halle_Berry\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Halle_Berry\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hamid_Karzai\\Hamid_Karzai_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hamid_Karzai\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hamid_Karzai\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hamid_Karzai\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hans_Blix\\Hans_Blix_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hans_Blix\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hans_Blix\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hans_Blix\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Harrison_Ford\\Harrison_Ford_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Harrison_Ford\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Harrison_Ford\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Harrison_Ford\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hillary_Clinton\\Hillary_Clinton_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hillary_Clinton\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hillary_Clinton\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hillary_Clinton\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Howard_Dean\\Howard_Dean_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Howard_Dean\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Howard_Dean\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Howard_Dean\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hugo_Chavez\\Hugo_Chavez_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hugo_Chavez\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hugo_Chavez\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hugo_Chavez\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hu_Jintao\\Hu_Jintao_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hu_Jintao\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hu_Jintao\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Hu_Jintao\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Igor_Ivanov\\Igor_Ivanov_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Igor_Ivanov\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Igor_Ivanov\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Igor_Ivanov\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jackie_Chan\\Jackie_Chan_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jackie_Chan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jackie_Chan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jackie_Chan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jack_Straw\\Jack_Straw_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jack_Straw\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jack_Straw\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jack_Straw\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jacques_Chirac\\Jacques_Chirac_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jacques_Chirac\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jacques_Chirac\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jacques_Chirac\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\James_Blake\\James_Blake_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\James_Blake\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\James_Blake\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\James_Blake\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\James_Kelly\\James_Kelly_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\James_Kelly\\brigth.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\James_Kelly\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\James_Kelly\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jean_Charest\\Jean_Charest_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jean_Charest\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jean_Charest\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jean_Charest\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jean_Chretien\\Jean_Chretien_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jean_Chretien\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jean_Chretien\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jean_Chretien\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jeb_Bush\\Jeb_Bush_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jeb_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jeb_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jeb_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Aniston\\Jennifer_Aniston_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Aniston\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Aniston\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Aniston\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Capriati\\Jennifer_Capriati_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Capriati\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Capriati\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Capriati\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Garner\\Jennifer_Garner_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Garner\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Garner\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Garner\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Lopez\\Jennifer_Lopez_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Lopez\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Lopez\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jennifer_Lopez\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jeremy_Greenstock\\Jeremy_Greenstock_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jeremy_Greenstock\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jeremy_Greenstock\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jeremy_Greenstock\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jiang_Zemin\\Jiang_Zemin_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jiang_Zemin\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jiang_Zemin\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jiang_Zemin\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jiri_Novak\\Jiri_Novak_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jiri_Novak\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jiri_Novak\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jiri_Novak\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Joe_Lieberman\\Joe_Lieberman_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Joe_Lieberman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Joe_Lieberman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Joe_Lieberman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Allen_Muhammad\\John_Allen_Muhammad_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Allen_Muhammad\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Allen_Muhammad\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Allen_Muhammad\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Ashcroft\\John_Ashcroft_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Ashcroft\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Ashcroft\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Ashcroft\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Bolton\\John_Bolton_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Bolton\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Bolton\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Bolton\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Howard\\John_Howard_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Howard\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Howard\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Howard\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Kerry\\John_Kerry_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Kerry\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Kerry\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Kerry\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Negroponte\\John_Negroponte_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Negroponte\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Negroponte\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Negroponte\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Paul_II\\John_Paul_II_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Paul_II\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Paul_II\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Paul_II\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Snow\\John_Snow_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Snow\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Snow\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\John_Snow\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Joschka_Fischer\\Joschka_Fischer_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Joschka_Fischer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Joschka_Fischer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Joschka_Fischer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jose_Maria_Aznar\\Jose_Maria_Aznar_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jose_Maria_Aznar\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jose_Maria_Aznar\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Jose_Maria_Aznar\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Juan_Carlos_Ferrero\\Juan_Carlos_Ferrero_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Juan_Carlos_Ferrero\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Juan_Carlos_Ferrero\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Juan_Carlos_Ferrero\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Julianne_Moore\\Julianne_Moore_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Julianne_Moore\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Julianne_Moore\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Julianne_Moore\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Julie_Gerberding\\Julie_Gerberding_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Julie_Gerberding\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Julie_Gerberding\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Julie_Gerberding\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Junichiro_Koizumi\\Junichiro_Koizumi_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Junichiro_Koizumi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Junichiro_Koizumi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Junichiro_Koizumi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Keanu_Reeves\\Keanu_Reeves_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Keanu_Reeves\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Keanu_Reeves\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Keanu_Reeves\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kim_Clijsters\\Kim_Clijsters_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kim_Clijsters\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kim_Clijsters\\brigth.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kim_Clijsters\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kim_Ryong-sung\\Kim_Ryong-sung_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kim_Ryong-sung\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kim_Ryong-sung\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kim_Ryong-sung\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kofi_Annan\\Kofi_Annan_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kofi_Annan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kofi_Annan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Kofi_Annan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lance_Armstrong\\Lance_Armstrong_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lance_Armstrong\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lance_Armstrong\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lance_Armstrong\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Laura_Bush\\Laura_Bush_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Laura_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Laura_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Laura_Bush\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lindsay_Davenport\\Lindsay_Davenport_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lindsay_Davenport\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lindsay_Davenport\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lindsay_Davenport\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lleyton_Hewitt\\Lleyton_Hewitt_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lleyton_Hewitt\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lleyton_Hewitt\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lleyton_Hewitt\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lucio_Gutierrez\\Lucio_Gutierrez_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lucio_Gutierrez\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lucio_Gutierrez\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Lucio_Gutierrez\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Luiz_Inacio_Lula_da_Silva\\Luiz_Inacio_Lula_da_Silva_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Luiz_Inacio_Lula_da_Silva\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Luiz_Inacio_Lula_da_Silva\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Luiz_Inacio_Lula_da_Silva\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mahathir_Mohamad\\Mahathir_Mohamad_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mahathir_Mohamad\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mahathir_Mohamad\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mahathir_Mohamad\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mahmoud_Abbas\\Mahmoud_Abbas_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mahmoud_Abbas\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mahmoud_Abbas\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mahmoud_Abbas\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mark_Philippoussis\\Mark_Philippoussis_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mark_Philippoussis\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mark_Philippoussis\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mark_Philippoussis\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Megawati_Sukarnoputri\\Megawati_Sukarnoputri_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Megawati_Sukarnoputri\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Megawati_Sukarnoputri\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Megawati_Sukarnoputri\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Meryl_Streep\\Meryl_Streep_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Meryl_Streep\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Meryl_Streep\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Meryl_Streep\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Bloomberg\\Michael_Bloomberg_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Bloomberg\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Bloomberg\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Bloomberg\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Jackson\\Michael_Jackson_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Jackson\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Jackson\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Jackson\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Schumacher\\Michael_Schumacher_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Schumacher\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Schumacher\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Michael_Schumacher\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mike_Weir\\Mike_Weir_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mike_Weir\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mike_Weir\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mike_Weir\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mohammed_Al-Douri\\Mohammed_Al-Douri_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mohammed_Al-Douri\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mohammed_Al-Douri\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Mohammed_Al-Douri\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nancy_Pelosi\\Nancy_Pelosi_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nancy_Pelosi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nancy_Pelosi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nancy_Pelosi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Naomi_Watts\\Naomi_Watts_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Naomi_Watts\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Naomi_Watts\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Naomi_Watts\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nestor_Kirchner\\Nestor_Kirchner_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nestor_Kirchner\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nestor_Kirchner\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nestor_Kirchner\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nicanor_Duarte_Frutos\\Nicanor_Duarte_Frutos_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nicanor_Duarte_Frutos\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nicanor_Duarte_Frutos\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nicanor_Duarte_Frutos\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nicole_Kidman\\Nicole_Kidman_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nicole_Kidman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nicole_Kidman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Nicole_Kidman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Norah_Jones\\Norah_Jones_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Norah_Jones\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Norah_Jones\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Norah_Jones\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Paul_Bremer\\Paul_Bremer_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Paul_Bremer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Paul_Bremer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Paul_Bremer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Paul_Burrell\\Paul_Burrell_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Paul_Burrell\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Paul_Burrell\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Paul_Burrell\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pervez_Musharraf\\Pervez_Musharraf_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pervez_Musharraf\\brigth.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pervez_Musharraf\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pervez_Musharraf\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pete_Sampras\\Pete_Sampras_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pete_Sampras\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pete_Sampras\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pete_Sampras\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pierce_Brosnan\\Pierce_Brosnan_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pierce_Brosnan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pierce_Brosnan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Pierce_Brosnan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Queen_Elizabeth_II\\Queen_Elizabeth_II_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Queen_Elizabeth_II\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Queen_Elizabeth_II\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Queen_Elizabeth_II\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Recep_Tayyip_Erdogan\\Recep_Tayyip_Erdogan_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Recep_Tayyip_Erdogan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Recep_Tayyip_Erdogan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Recep_Tayyip_Erdogan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Renee_Zellweger\\Renee_Zellweger_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Renee_Zellweger\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Renee_Zellweger\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Renee_Zellweger\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ricardo_Lagos\\Ricardo_Lagos_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ricardo_Lagos\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ricardo_Lagos\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Ricardo_Lagos\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Richard_Gephardt\\Richard_Gephardt_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Richard_Gephardt\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Richard_Gephardt\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Richard_Gephardt\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Richard_Myers\\Richard_Myers_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Richard_Myers\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Richard_Myers\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Richard_Myers\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Roger_Federer\\Roger_Federer_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Roger_Federer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Roger_Federer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Roger_Federer\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Roh_Moo-hyun\\Roh_Moo-hyun_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Roh_Moo-hyun\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Roh_Moo-hyun\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Roh_Moo-hyun\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Rubens_Barrichello\\Rubens_Barrichello_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Rubens_Barrichello\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Rubens_Barrichello\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Rubens_Barrichello\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Rudolph_Giuliani\\Rudolph_Giuliani_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Rudolph_Giuliani\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Rudolph_Giuliani\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Rudolph_Giuliani\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Saddam_Hussein\\Saddam_Hussein_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Saddam_Hussein\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Saddam_Hussein\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Saddam_Hussein\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Salma_Hayek\\Salma_Hayek_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Salma_Hayek\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Salma_Hayek\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Salma_Hayek\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Serena_Williams\\Serena_Williams_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Serena_Williams\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Serena_Williams\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Serena_Williams\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Sergey_Lavrov\\Sergey_Lavrov_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Sergey_Lavrov\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Sergey_Lavrov\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Sergey_Lavrov\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Sergio_Vieira_De_Mello\\Sergio_Vieira_De_Mello_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Sergio_Vieira_De_Mello\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Sergio_Vieira_De_Mello\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Sergio_Vieira_De_Mello\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Silvio_Berlusconi\\Silvio_Berlusconi_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Silvio_Berlusconi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Silvio_Berlusconi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Silvio_Berlusconi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Spencer_Abraham\\Spencer_Abraham_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Spencer_Abraham\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Spencer_Abraham\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Spencer_Abraham\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Taha_Yassin_Ramadan\\Taha_Yassin_Ramadan_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Taha_Yassin_Ramadan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Taha_Yassin_Ramadan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Taha_Yassin_Ramadan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tang_Jiaxuan\\Tang_Jiaxuan_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tang_Jiaxuan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tang_Jiaxuan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tang_Jiaxuan\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tiger_Woods\\Tiger_Woods_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tiger_Woods\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tiger_Woods\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tiger_Woods\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tim_Henman\\Tim_Henman_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tim_Henman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tim_Henman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tim_Henman\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tommy_Franks\\Tommy_Franks_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tommy_Franks\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tommy_Franks\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tommy_Franks\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tom_Daschle\\Tom_Daschle_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tom_Daschle\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tom_Daschle\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tom_Daschle\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tom_Ridge\\Tom_Ridge_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tom_Ridge\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tom_Ridge\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tom_Ridge\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tony_Blair\\Tony_Blair_0001.png\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tony_Blair\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tony_Blair\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Tony_Blair\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Trent_Lott\\Trent_Lott_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Trent_Lott\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Trent_Lott\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Trent_Lott\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Venus_Williams\\Venus_Williams_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Venus_Williams\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Venus_Williams\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Venus_Williams\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Vicente_Fox\\Vicente_Fox_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Vicente_Fox\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Vicente_Fox\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Vicente_Fox\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Vladimir_Putin\\Vladimir_Putin_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Vladimir_Putin\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Vladimir_Putin\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Vladimir_Putin\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Wen_Jiabao\\Wen_Jiabao_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Wen_Jiabao\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Wen_Jiabao\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Wen_Jiabao\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Winona_Ryder\\Winona_Ryder_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Winona_Ryder\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Winona_Ryder\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Winona_Ryder\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Yoriko_Kawaguchi\\Yoriko_Kawaguchi_0001.png\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Yoriko_Kawaguchi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Yoriko_Kawaguchi\\brigth.jpg\n",
      "X:\\share\\image\\lfw_classfiy_image_equel1_gener\\Yoriko_Kawaguchi\\brigth.jpg\n"
     ]
    }
   ],
   "source": [
    "%run func_index.ipynb\n",
    "\n",
    "src_root=r\"X:\\share\\image\\lfw_classfiy_image_equel1_gener\"\n",
    "for src in Path(src_root).iterdir():\n",
    "    gener_image(src,src)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Abdullah_Gul'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Adrien_Brody'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Alejandro_Toledo'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Alvaro_Uribe'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Amelie_Mauresmo'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Andre_Agassi'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Andy_Roddick'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Angelina_Jolie'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Anna_Kournikova'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Ann_Veneman'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Ariel_Sharon'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Ari_Fleischer'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Arnold_Schwarzenegger'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Atal_Bihari_Vajpayee'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Bill_Clinton'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Bill_Gates'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Bill_Simon'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Britney_Spears'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Carlos_Menem'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Carlos_Moya'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Catherine_Zeta-Jones'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Charles_Moose'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Colin_Powell'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Condoleezza_Rice'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/David_Beckham'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/David_Nalbandian'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Dick_Cheney'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Dominique_de_Villepin'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Donald_Rumsfeld'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Edmund_Stoiber'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Eduardo_Duhalde'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Fidel_Castro'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/George_HW_Bush'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/George_Robertson'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/George_W_Bush'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Gerhard_Schroeder'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Gloria_Macapagal_Arroyo'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Gonzalo_Sanchez_de_Lozada'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Gordon_Brown'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Gray_Davis'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Guillermo_Coria'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Halle_Berry'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Hamid_Karzai'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Hans_Blix'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Harrison_Ford'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Hillary_Clinton'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Howard_Dean'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Hugo_Chavez'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Hu_Jintao'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Igor_Ivanov'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jackie_Chan'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jack_Straw'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jacques_Chirac'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/James_Blake'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/James_Kelly'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jean_Charest'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jean_Chretien'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jeb_Bush'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jennifer_Aniston'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jennifer_Capriati'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jennifer_Garner'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jennifer_Lopez'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jeremy_Greenstock'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jiang_Zemin'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jiri_Novak'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Joe_Lieberman'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/John_Allen_Muhammad'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/John_Ashcroft'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/John_Bolton'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/John_Howard'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/John_Kerry'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/John_Negroponte'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/John_Paul_II'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/John_Snow'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Joschka_Fischer'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Jose_Maria_Aznar'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Juan_Carlos_Ferrero'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Julianne_Moore'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Julie_Gerberding'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Junichiro_Koizumi'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Keanu_Reeves'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Kim_Clijsters'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Kim_Ryong-sung'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Kofi_Annan'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Lance_Armstrong'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Laura_Bush'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Lindsay_Davenport'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Lleyton_Hewitt'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Lucio_Gutierrez'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Luiz_Inacio_Lula_da_Silva'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Mahathir_Mohamad'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Mahmoud_Abbas'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Mark_Philippoussis'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Megawati_Sukarnoputri'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Meryl_Streep'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Michael_Bloomberg'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Michael_Jackson'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Michael_Schumacher'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Mike_Weir'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Mohammed_Al-Douri'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Nancy_Pelosi'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Naomi_Watts'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Nestor_Kirchner'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Nicanor_Duarte_Frutos'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Nicole_Kidman'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Norah_Jones'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Paul_Bremer'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Paul_Burrell'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Pervez_Musharraf'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Pete_Sampras'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Pierce_Brosnan'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Queen_Elizabeth_II'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Recep_Tayyip_Erdogan'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Renee_Zellweger'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Ricardo_Lagos'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Richard_Gephardt'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Richard_Myers'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Roger_Federer'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Roh_Moo-hyun'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Rubens_Barrichello'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Rudolph_Giuliani'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Saddam_Hussein'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Salma_Hayek'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Serena_Williams'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Sergey_Lavrov'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Sergio_Vieira_De_Mello'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Silvio_Berlusconi'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Spencer_Abraham'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Taha_Yassin_Ramadan'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Tang_Jiaxuan'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Tiger_Woods'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Tim_Henman'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Tommy_Franks'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Tom_Daschle'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Tom_Ridge'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Tony_Blair'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Trent_Lott'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Venus_Williams'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Vicente_Fox'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Vladimir_Putin'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Wen_Jiabao'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Winona_Ryder'),\n",
       " WindowsPath('X:/share/image/lfw_classfiy_image_equel1_gener/Yoriko_Kawaguchi')]"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "[i for i in Path(r\"X:\\share\\image\\lfw_classfiy_image_equel1_gener\").iterdir()]\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 输出变换后的图片\n",
    "from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img\n",
    "import numpy as np\n",
    "datagen = ImageDataGenerator(\n",
    "        rotation_range=5,\n",
    "\n",
    "        zoom_range=0.01,\n",
    "        horizontal_flip=True,\n",
    "        fill_mode='nearest')\n",
    "# 路径存储\n",
    "gener=datagen.flow_from_directory(src_path,\n",
    "                                         batch_size=2,\n",
    "                                         shuffle=False,\n",
    "                                         save_to_dir=dst_path,\n",
    "                                         save_prefix='trans_',\n",
    "                                         save_format='jpg')\n",
    "for i in range(3):\n",
    "    gener.next()\n",
    "    \n",
    "        "
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.6"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
